import { DatePicker, Space } from 'antd';
import moment from 'moment'
import locale from 'antd/lib/date-picker/locale/zh_CN'
import 'moment/locale/zh-cn'
moment.locale('zh-cn')


function Date(){
    function onChange(date, dateString) {
        console.log(date, dateString);
    }
    return (
        <Space >
            <DatePicker 
            locale={locale} onChange={onChange} 
            />
        </Space>
    )
}
export default Date;